package com.beadwallet.alarm.entity.msgInfo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author master
 * @since 2018-01-23
 */
@TableName("msg_title")
public class Title extends Model<Title> implements Serializable{

    private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@JSONField(serialize = false)
	@TableId(value="id")
	private Integer id;
	/**
	 * 创建用户名
	 */
	@JSONField(serialize = false)
	@TableField(value="create_username")
	private String createUsername;
	/**
	 * 创建时间
	 */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/**
	 * 更新用户名
	 */
	@JSONField(serialize = false)
	@TableField(value="update_username")
	private String updateUsername;
	/**
	 * 更新时间
	 */
	@JSONField(serialize = false)
	@TableField(value="update_time")
	private Date updateTime;
	/**
	 * 短信模板Id
	 */
	@JSONField(serialize = false)
	@TableField(value="templateId")
	private String templateid;
	/**
	 * 短信标题
	 */
	@TableField(value = "title")
	private String title;

	/**
	 *  templateId
	 * @return
	 */
	private String content;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCreateUsername() {
		return createUsername;
	}

	public void setCreateUsername(String createUsername) {
		this.createUsername = createUsername;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdateUsername() {
		return updateUsername;
	}

	public void setUpdateUsername(String updateUsername) {
		this.updateUsername = updateUsername;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getTemplateid() {
		return templateid;
	}

	public void setTemplateid(String templateid) {
		this.templateid = templateid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
